<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=no">
  <!-- <link rel="icon" href="<%= BASE_URL %>favicon.ico"> -->
  <link rel="icon" href="/favicon.ico">
  <title></title>
  <meta name="keywords" content="">
  <meta name="description" content="">
  <meta name="referrer" content="strict-origin-when-cross-origin">
</head>

<body>
  <noscript>
    <strong>We're sorry but 358 doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
  </noscript>
  <div id="app"></div>

  <!-- built files will be auto injected -->
  <input type="hidden" id="agentId" value="{$agent_id|default=0}">

  <!-- https://api.vip666game.com -->

  <!-- 生产环境配置api基础路径 -->
  <input type="hidden" id="h5iSite" value="{$h5i_site}">
  <input type="hidden" id="ApiSite" value="{$baseUrl}">
  <input type="hidden" id="staticSite" value="{$staticUrl}">

  <!-- 开发环境配置api基础路径 -->
  <!-- <input type="hidden" id="staticSite" value="https://test-static.kejingou.cn">
  <input type="hidden" id="ApiSite" value="https://test-m.kejingou.cn">
  <input type="hidden" id="h5iSite" value="https://test-sdk.kejingou.cn"> -->

  <script>
    var HuoConfig = {
      canBack: true
    }

  </script>
  <!-- 生产环境引入huosdk.js -->
  <script src="__STATIC__/h5sdk/js/huosdk.js?v=1029"></script>
  <!-- 开发环境引入huosdk.js -->
  <!-- <script src="https://test-static.kejingou.cn/h5sdk/js/huosdk.js?v=1029"></script> -->

  <!-- <script src="https://teststatic467.huoyx.cn/h5sdk/js/huosdk.js?v=1030"></script> -->

  <script>
    HuoApi.loginSuccess = function (res) {
      window.localStorage.setItem('loginFlag', 2)
      // 移除弹框
      HuoUtils.switchTemplate()
      if (res.code === 200) {
        window.localStorage.setItem('user_token', res.data.user_token)
        window.location.reload()
      } else {
        HuoUtils.switchTemplate('login')
        HuoUtils.tips(res.msg)
      }
    }
    HuoApi.regSuccess = function (res) {
      window.localStorage.setItem('loginFlag', 2)
      if (res.code === 200) {
        window.localStorage.setItem('user_token', res.data.user_token)
        window.location.reload()
      } else {
        // 移除弹框
        HuoUtils.tips(res.msg)
      }
    }

  </script>
</body>

</html>
